package cn.com.zetatech.loader.common.db;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import lombok.Data;

@Component
@Data
public class PostgreSqlDBConfig extends MybatisDBConfig {

	@Value("${postgresql.driverClassName:}")
    private String driverClassName;

	@Value("${postgresql.url:}")
    private String url;

	@Value("${postgresql.username:}")
    private String username;

	@Value("${postgresql.password:}")
    private String password;

	@Value("${postgresql.dbType:}")
    private String dbType;
	 
    private String mapping;
    
    @Override
    public String toString() {
        return getDriverClassName() + "_" + getUrl() + "_" + getUsername() + "_" + getPassword() + "_" + getDbType();
    }
}
